package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 测试题评价业务对象 p_test_evaluate
 *
 * @author ruoyi
 * @date 2022-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("测试题评价业务对象")
public class PTestEvaluateBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 测试id
     */
    @ApiModelProperty(value = "测试id", required = true)
    @NotNull(message = "测试id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long topicId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    /**
     * 评价信息
     */
    @ApiModelProperty(value = "评价信息", required = true)
    @NotBlank(message = "评价信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String msg;


}
